﻿
/* 
 * Since 2008 - 2012
 */
package com.hh.bss.project.entity;

import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import com.hh.bss.base.*;
import com.hh.bss.common.page.*;
import com.hh.bss.common.page.impl.*;
import com.hh.bss.project.dao.*;
import com.hh.bss.project.entity.*;
import com.hh.bss.project.service.*;
import com.hh.bss.project.vo.query.*;
import com.hh.bss.util.*;





public class ContractJobCvOffer extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "ContractJobCvOffer";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_RECOM_ID = "recomId";
	public static final String ALIAS_APPLY_D = "applyD";
	public static final String ALIAS_ONDUTY_D = "ondutyD";
	public static final String ALIAS_TRIAL = "trial";
	public static final String ALIAS_EXPIRED_D = "expiredD";
	public static final String ALIAS_SALARY = "salary";
	public static final String ALIAS_CURRENCY = "currency";
	public static final String ALIAS_ESTIMATE_AR = "estimateAr";
	public static final String ALIAS_CHECKIN_D = "checkinD";
	public static final String ALIAS_STATUS = "status";
	public static final String ALIAS_STATUS_DESC = "statusDesc";
	public static final String ALIAS_ADJUST_AR = "adjustAr";
	public static final String ALIAS_ADJUST_SIGN = "adjustSign";
	public static final String ALIAS_ADJUST_DESC = "adjustDesc";
	public static final String ALIAS_FINAL_AR = "finalAr";
	public static final String ALIAS_PN_STATUS = "pnStatus";
	public static final String ALIAS_CREATOR = "creator";
	public static final String ALIAS_CREATE_DT = "createDt";
	public static final String ALIAS_MODIFIER = "modifier";
	public static final String ALIAS_MODIFIED_DT = "modifiedDt";
	
	//date formats
	public static final String FORMAT_APPLY_D = DATE_FORMAT;
	public static final String FORMAT_ONDUTY_D = DATE_FORMAT;
	public static final String FORMAT_EXPIRED_D = DATE_FORMAT;
	public static final String FORMAT_CHECKIN_D = DATE_FORMAT;
	public static final String FORMAT_CREATE_DT = DATE_FORMAT;
	public static final String FORMAT_MODIFIED_DT = DATE_FORMAT;
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	
	private java.lang.Integer id;
	@NotNull 
	private java.lang.Integer recomId;
	@NotNull 
	private java.util.Date applyD;
	@NotNull 
	private java.util.Date ondutyD;
	@NotNull @Max(32767)
	private Integer trial;
	@NotNull 
	private java.util.Date expiredD;
	@NotNull 
	private Double salary;
	@NotBlank @Length(max=3)
	private java.lang.String currency;
	@NotNull 
	private Double estimateAr;
	
	private java.util.Date checkinD;
	@NotNull @Max(32767)
	private Integer status;
	@Length(max=255)
	private java.lang.String statusDesc;
	
	private Double adjustAr;
	@Max(32767)
	private Integer adjustSign;
	@Length(max=255)
	private java.lang.String adjustDesc;
	/**实际收费金额*/
	private Double finalAr;
	@NotNull @Max(32767)
	private Integer pnStatus;
	@Length(max=50)
	private java.lang.String creator;
	
	private java.util.Date createDt;
	@Length(max=50)
	private java.lang.String modifier;
	
	private java.util.Date modifiedDt;
	private String offerFile;
	//columns END

	public String getOfferFile() {
		return offerFile;
	}

	public void setOfferFile(String offerFile) {
		this.offerFile = offerFile;
	}

	public ContractJobCvOffer(){
	}

	public ContractJobCvOffer(
		java.lang.Integer id
	){
		this.id = id;
	}

	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.Integer getId() {
		return this.id;
	}
	public void setRecomId(java.lang.Integer value) {
		this.recomId = value;
	}
	
	public java.lang.Integer getRecomId() {
		return this.recomId;
	}
	public String getApplyDString() {
		return DateConvertUtils.format(getApplyD(), FORMAT_APPLY_D);
	}
	public void setApplyDString(String value) {
		setApplyD(DateConvertUtils.parse(value, FORMAT_APPLY_D,java.util.Date.class));
	}
	
	public void setApplyD(java.util.Date value) {
		this.applyD = value;
	}
	
	public java.util.Date getApplyD() {
		return this.applyD;
	}
	public String getOndutyDString() {
		return DateConvertUtils.format(getOndutyD(), FORMAT_ONDUTY_D);
	}
	public void setOndutyDString(String value) {
		setOndutyD(DateConvertUtils.parse(value, FORMAT_ONDUTY_D,java.util.Date.class));
	}
	
	public void setOndutyD(java.util.Date value) {
		this.ondutyD = value;
	}
	
	public java.util.Date getOndutyD() {
		return this.ondutyD;
	}
	public void setTrial(Integer value) {
		this.trial = value;
	}
	
	public Integer getTrial() {
		return this.trial;
	}
	public String getExpiredDString() {
		return DateConvertUtils.format(getExpiredD(), FORMAT_EXPIRED_D);
	}
	public void setExpiredDString(String value) {
		setExpiredD(DateConvertUtils.parse(value, FORMAT_EXPIRED_D,java.util.Date.class));
	}
	
	public void setExpiredD(java.util.Date value) {
		this.expiredD = value;
	}
	
	public java.util.Date getExpiredD() {
		return this.expiredD;
	}
	public void setSalary(Double value) {
		this.salary = value;
	}
	
	public Double getSalary() {
		return this.salary;
	}
	public void setCurrency(java.lang.String value) {
		this.currency = value;
	}
	
	public java.lang.String getCurrency() {
		return this.currency;
	}
	public void setEstimateAr(Double value) {
		this.estimateAr = value;
	}
	
	public Double getEstimateAr() {
		return this.estimateAr;
	}
	public String getCheckinDString() {
		return DateConvertUtils.format(getCheckinD(), FORMAT_CHECKIN_D);
	}
	public void setCheckinDString(String value) {
		setCheckinD(DateConvertUtils.parse(value, FORMAT_CHECKIN_D,java.util.Date.class));
	}
	
	public void setCheckinD(java.util.Date value) {
		this.checkinD = value;
	}
	
	public java.util.Date getCheckinD() {
		return this.checkinD;
	}
	public void setStatus(Integer value) {
		this.status = value;
	}
	
	public Integer getStatus() {
		return this.status;
	}
	public void setStatusDesc(java.lang.String value) {
		this.statusDesc = value;
	}
	
	public java.lang.String getStatusDesc() {
		return this.statusDesc;
	}
	public void setAdjustAr(Double value) {
		this.adjustAr = value;
	}
	
	public Double getAdjustAr() {
		return this.adjustAr;
	}
	public void setAdjustSign(Integer value) {
		this.adjustSign = value;
	}
	
	public Integer getAdjustSign() {
		return this.adjustSign;
	}
	public void setAdjustDesc(java.lang.String value) {
		this.adjustDesc = value;
	}
	
	public java.lang.String getAdjustDesc() {
		return this.adjustDesc;
	}
	public void setFinalAr(Double value) {
		this.finalAr = value;
	}
	
	public Double getFinalAr() {
		return this.finalAr;
	}
	public void setPnStatus(Integer value) {
		this.pnStatus = value;
	}
	
	public Integer getPnStatus() {
		return this.pnStatus;
	}
	public void setCreator(java.lang.String value) {
		this.creator = value;
	}
	
	public java.lang.String getCreator() {
		return this.creator;
	}
	public String getCreateDtString() {
		return DateConvertUtils.format(getCreateDt(), FORMAT_CREATE_DT);
	}
	public void setCreateDtString(String value) {
		setCreateDt(DateConvertUtils.parse(value, FORMAT_CREATE_DT,java.util.Date.class));
	}
	
	public void setCreateDt(java.util.Date value) {
		this.createDt = value;
	}
	
	public java.util.Date getCreateDt() {
		return this.createDt;
	}
	public void setModifier(java.lang.String value) {
		this.modifier = value;
	}
	
	public java.lang.String getModifier() {
		return this.modifier;
	}
	public String getModifiedDtString() {
		return DateConvertUtils.format(getModifiedDt(), FORMAT_MODIFIED_DT);
	}
	public void setModifiedDtString(String value) {
		setModifiedDt(DateConvertUtils.parse(value, FORMAT_MODIFIED_DT,java.util.Date.class));
	}
	
	public void setModifiedDt(java.util.Date value) {
		this.modifiedDt = value;
	}
	
	public java.util.Date getModifiedDt() {
		return this.modifiedDt;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("RecomId",getRecomId())
			.append("ApplyD",getApplyD())
			.append("OndutyD",getOndutyD())
			.append("Trial",getTrial())
			.append("ExpiredD",getExpiredD())
			.append("Salary",getSalary())
			.append("Currency",getCurrency())
			.append("EstimateAr",getEstimateAr())
			.append("CheckinD",getCheckinD())
			.append("Status",getStatus())
			.append("StatusDesc",getStatusDesc())
			.append("AdjustAr",getAdjustAr())
			.append("AdjustSign",getAdjustSign())
			.append("AdjustDesc",getAdjustDesc())
			.append("FinalAr",getFinalAr())
			.append("PnStatus",getPnStatus())
			.append("Creator",getCreator())
			.append("CreateDt",getCreateDt())
			.append("Modifier",getModifier())
			.append("ModifiedDt",getModifiedDt())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof ContractJobCvOffer == false) return false;
		if(this == obj) return true;
		ContractJobCvOffer other = (ContractJobCvOffer)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

